package tt.lab.designparttern.observer;

import java.util.Observable;

public class MyObservable extends Observable{
	private String name;

	public void setName(String name) {
		this.name = name;
		setChanged();
		notifyObservers(name);
	}

	public String getName() {
		return name;
	}
}
